//
//  ViewController.m
//  native-mpmovieplayercontroller-player-demo
//
//  Created by holyen on 12-10-24.
//  Copyright (c) 2012年 holyen. All rights reserved.
//

#import "ViewController.h"
#import "MoviePlayerViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)tapAction:(id)sender {
    HVideoBase *videoBase = [[HVideoBase alloc] init];
    videoBase.videoURL = @"http://1.mp4";
    MoviePlayerViewController *movieVC = [[MoviePlayerViewController alloc] initWithHVideoBase:videoBase];
    [self.navigationController pushViewController:movieVC animated:YES];
    [videoBase release];
    [movieVC release];
    
}
@end
